﻿import request from '/@/utils/request';
enum Api {
  AddSci = '/api/sci/add',
  DeleteSci = '/api/sci/delete',
  UpdateSci = '/api/sci/update',
  PageSci = '/api/sci/page',
  DetailSci = '/api/sci/detail',
}

// 增加SCI
export const addSci = (params?: any) =>
	request({
		url: Api.AddSci,
		method: 'post',
		data: params,
	});

// 删除SCI
export const deleteSci = (params?: any) => 
	request({
			url: Api.DeleteSci,
			method: 'post',
			data: params,
		});

// 编辑SCI
export const updateSci = (params?: any) => 
	request({
			url: Api.UpdateSci,
			method: 'post',
			data: params,
		});

// 分页查询SCI
export const pageSci = (params?: any) => 
	request({
			url: Api.PageSci,
			method: 'post',
			data: params,
		});

// 详情SCI
export const detailSci = (id: any) => 
	request({
			url: Api.DetailSci,
			method: 'get',
			data: { id },
		});


